package com.hzy.orderSystem.dao;

import com.github.pagehelper.Page;
import com.hzy.orderSystem.entities.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 小宝
 * @create 2021/4/17 10:28
 */
@Mapper
public interface OrderDao {

    public int save(Order order);

    public Order getRecords(@Param("id") Long id);

    public Page<Order> getOrders(@Param("uid") Long uid,
                                 @Param("sid") Long sid,
                                 @Param("status") List<Integer> status);

    public int updateOrder(Order order);
}
